import request from '@/utils/request'
// const BASE_URL = process.env.VUE_APP_BASE_API

export function addQuestion(data) {
  return request({
    url: '/admin/addQuestion?userId=1',
    method: 'post',
    data
  })
}

export function getQuestionListBySubject(subjectId) {
  return request({
    url: `/admin/getQuestionListBySubject?subjectId=${subjectId}`,
    method: 'get'
  })
}

export function updateQuestion(data) {
  return request({
    url: '/admin/updateQuestion',
    method: 'post',
    data
  })
}

export function deleteQuestion(data) {
  return request({
    url: '/admin/deleteQuestion',
    method: 'post',
    data
  })
}
